import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class AsidePanelService {
  private rightSidePanelSubject = new Subject<void>();
  /**
   * 右侧边栏Subject服务
   */
  constructor() { }

  public query(): Observable<void> {
    return this.rightSidePanelSubject.asObservable();
  }

  public send(): void {
    this.rightSidePanelSubject.next();
  }
}
